import os


def read_prompt_file(filename: str) -> str:
    with open(os.path.join('prompt', filename), 'r', encoding='utf-8') as f:
        return f.read()


def entity_go_prompt():
    file_list = ['01-coding-example.md', '02-coding-entity.go.md']
    # file_list = ['01-coding-example.md', '02-coding-entity.go-翻版.md']
    prompt_value = ""
    for path in file_list:
        prompt_value += read_prompt_file(path)
        prompt_value += '\n'
    return prompt_value


def value_go_prompt():
    return read_prompt_file('03-coding-value.go.md')


def parser_go_prompt():
    return read_prompt_file('04-coding-parser.go.md')


def validate_go_prompt():
    return read_prompt_file('05-coding-validate.go.md')
